import time
from public.action import *
from public.business import *
from public.testData import *
from public.tools import *
testCase="DBshop007_订单管理发货单"
firefox=openBrowser(urlAdmin) #调用函数打开网址
DBshopLoginAdmin(firefox)
firefox.find_element_by_xpath('//a[contains(.,"添加商品分类")]').click()
firefox.find_element_by_xpath('//a[contains(.,"添加分类")]').click()
firefox.find_element_by_id("class_name").send_keys('商品分类测试')
firefox.find_element_by_id("class_sort").clear()
firefox.find_element_by_id("class_sort").send_keys('1')
firefox.find_element_by_xpath('//button[contains(.,"保存分类")]').click()
firefox.find_elements_by_link_text('分类编辑')[0].click()
firefox.find_element_by_id("class_sort").clear()
firefox.find_element_by_id("class_sort").send_keys('4')
firefox.find_elements_by_xpath('//button')[1].click()

